package com.zdj.input;

import org.junit.Test;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author zhangdj
 * @date 2021-10-14 15:20:32
 */
public class Main {

    public static void main(String[] args) {
        t8();
    }

    public static void t8() {
        Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        String[] arr = new String[count];
        for (int i = 0; i < count; i++) {
            String next = scanner.next();
            arr[i] = next;
        }
        Arrays.sort(arr);
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < count; i++) {
            if (i == count - 1) {
                stringBuilder.append(arr[i]);
                break;
            }
            stringBuilder.append(arr[i]).append(" ");
        }
        System.out.println(stringBuilder.toString());
    }


    public static void t7() {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int count = scanner.nextInt();
            int sum = 0;
            for (int i = 0; i < count; i++) {
                int a = scanner.nextInt();
                sum += a;
            }
            System.out.println(sum);
        }
    }


    public static void t6() {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int sum = 0;
            String s = scanner.nextLine();
            String[] array = s.split(" ");
            for (String item : array) {
                sum += Integer.parseInt(item);
            }
            System.out.println(sum);
        }
    }

    public static void t5() {
        Scanner scanner = new Scanner(System.in);
        int groupCount = scanner.nextInt();
        for (int i = 0; i < groupCount; i++) {
            int dataCount = scanner.nextInt();
            int sum = 0;
            for (int j = 0; j < dataCount; j++) {
                int data = scanner.nextInt();
                sum += data;
            }
            System.out.println(sum);
        }
    }

    public static void t4() {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int n = scanner.nextInt();
            if (n == 0) {
                return;
            }
            int sum = 0;
            for (int i = 0; i < n; i++) {
                int a = scanner.nextInt();
                sum += a;
            }
            System.out.println(sum);
        }
    }

    public static void t3() {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            if (a == 0 && b == 0) {
                return;
            }
            System.out.println(a + b);
        }
    }

    public static void t2() {
        Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        for (int i = 0; i < count; i++) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(a + b);
        }
    }

    public static void t1() {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            Integer i1 = new Integer(scanner.next());
            Integer i2 = new Integer(scanner.next());
            System.out.println(i1 + i2);
        }
    }


}
